package com.sun.showcase.client.query.mall;

import com.sun.showcase.client.domain.mall.SkuAttribute;
import com.sun.showcase.pojo.SearchModel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class SkuAttributeQuery extends SearchModel<SkuAttribute> implements Serializable {
    
  private static final long serialVersionUID = 3148176768559230877L;
    

	  /**
     * ID       db_column: id 
     */	
	private String id;
	  /**
     * 值       db_column: value
     */
	private String value;
	  /**
     * 图片       db_column: pic
     */
	private String pic;
	  /**
     * 序号       db_column: order_num
     */
	private Integer orderNum;
	  /**
     * 商品id       db_column: goods_id
     */
	private String goodsId;
	  /**
     * 商品名       db_column: goods_name
     */
	private String goodsName;
	/**
	 * 封装修改时的where条件  key为数据库字段值  value为条件值
	 * */
	private Map<String,Object> searchMap = new HashMap<String,Object>();
	/**
	 * 数据表主键id的数组
	 * */
	private String ids[];

	private List<SkuAttributeValueQuery> leaf;

	public List<SkuAttributeValueQuery> getLeaf() {
		return leaf;
	}

	public void setLeaf(List<SkuAttributeValueQuery> leaf) {
		this.leaf = leaf;
	}

	public String getId() {
		return this.id;
	}

	public void setId(String value) {
		this.id = value;
	}

	public String getValue() {
		return this.value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getPic() {
		return this.pic;
	}

	public void setPic(String value) {
		this.pic = value;
	}

	public Integer getOrderNum() {
		return this.orderNum;
	}

	public void setOrderNum(Integer value) {
		this.orderNum = value;
	}

	public String getGoodsId() {
		return this.goodsId;
	}

	public void setGoodsId(String value) {
		this.goodsId = value;
	}

	public String getGoodsName() {
		return this.goodsName;
	}

	public void setGoodsName(String value) {
		this.goodsName = value;
	}

	public Map<String, Object> getSearchMap() {
		return searchMap;
	}

	public void setSearchMap(Map<String, Object> searchMap) {
		this.searchMap = searchMap;
	}

	public String[] getIds() {
		return ids;
	}

	public void setIds(String[] ids) {
		this.ids = ids;
	}

	public String toString() {
		return ToStringBuilder.reflectionToString(this, ToStringStyle.DEFAULT_STYLE);
	}
	
}

